package br.com.trabalho.model;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@SessionScoped
@ManagedBean(name="funcionario")
@Table(name="TB_FUNCIONARIO")
@PrimaryKeyJoinColumn(name = "id_pessoa")
public class Funcionario extends Pessoa{
    
    private String cargo;
    private String area;
       
    public Funcionario(){}

    public String getCargo() {
        return cargo;
    }

    public void setCargo(String cargo) {
        this.cargo = cargo;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    } 
    
    public String toString() {
        return this.getNome();
    }
    
    
}
